package lab02.test05;

/**
 * Created by Jammy on 2017/10/15.
 */
public class Cube {
    int length;
    int width;
    int height;

    public Cube() {
    }

    public Cube(int length, int width, int height) {
        this.length = length;
        this.width = width;
        this.height = height;

    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }
    public int getWidth() {
        return width;
    }
    public void setWidth(int width){
        this.width=width;
    }

    public int getHeight() {
        return height;
    }
    public void setHeight(int height){
        this.height=height;
    }

    @Override
    public String toString() {
        return "体积为："+length*width*height;
    }
}
